<!-- packageManager.jsp -->
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="bss.common.util.LoginedStaffInfo"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
		<%
   			 Object loginedStaffInfo = request.getSession().getAttribute("loginedStaffInfo");
   			 Object zoneNumber = null;
   			 Object staffId = null;
   			 if (loginedStaffInfo != null) {
	   			 LoginedStaffInfo staffInfo = (LoginedStaffInfo)loginedStaffInfo;
				staffId= staffInfo.getStaffId();
	   			 zoneNumber = staffInfo.getZoneNumber();
   			 }
		 %>
   <head>
		<title>包配置管理页面</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/packagemgr.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/themes/icon.css">
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/JQuery/jquery-1.4.4.min.js"  > </script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/JQuery/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/JQuery/jquery.form.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/JQuery/jquery.cookie.js" > </script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/JQuery/easyui-lang-zh_CN.js" > </script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/util/util.js"  ></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/util/SysConfig.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/util/Constant.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/package/model.js" ></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/packageManager.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/package/packagePublish.js"></script>
		<script>
   			if (SYSTEM.DEBUG) {
	   			var g_staffId = 1001;
				var g_areaId = 15;
				var g_areaName = "无锡";
   			} else {
   				var area = AREA.ThirdLevel().get('<%=zoneNumber%>');
				var g_areaId = area.areaId;
				var g_areaName = area.areaName;
				var g_staffId = <%=staffId%>;
   			}
		</script>

	</head>
	<body>
		<div id="mainBody">
			 <div id="queryPanel" style="border:0px; margin:0px;">
				<div id="catalog"></div>
				<div class="label">查询条件</div>
				<form action=PackagePathDispatcher method="post" id="redirect">
					<input type="hidden" id="path" name="path"/>
					<input type="hidden" id="operate" name="operate"/>
					<table style="font-size:12px;font-weight:normal;width:100%;">
					    <tr style="line-height:30px;">
					        <td style="text-align:right;">
					        	包名称:
					        </td>
					        <td>
					        	<input type="text" style="width:90%" name="packageName" id="packageName"/>
					        </td>
					        <td style="text-align:right;">
					        	包编码:
					        </td>
							<td>
								<input type="text" style="width:90%" name="packageCode" id="packageCode"/>
							</td>
					    </tr>

					     <tr style="">
					        <td style="text-align:right;">
					        	开始时间:
					        </td>
					        <td>
					        	<input name="startDt"  id="startDt" style="width:200px;"/>
					        </td>
					        <td style="text-align:right;">
					        	结束时间:
					        </td>
							<td>
								<input name="endDt" id="endDt" style="width:200px;"/>
							</td>
					    </tr>

						<tr style="line-height:40px;">

					        <td style="text-align:right;">
					        	发布地区:
					        </td>
							<td>
								<input type="hidden" id="pubAreaId" name="pubAreaId" />
								<input type="text" style="width:90%" name="pubAreaName" id="pubAreaName" readonly="readonly"/>
								<img src="../resources/images/open.gif" onClick="selectPubArea();">
								<div id="areaDiv"></div>
							</td>
							 <td style="text-align:right;">
					        	包状态:
					        </td>
							<td>
								<select name="packageStatus" id="packageStatus" style="width:90%">
									<option  selected="selected"></option>
									<option value="1">设计中</option>
									<option value="2">已生效</option>
									<option value="3">已失效</option>
								</select>
							</td>
					    </tr>

					    <tr style="line-height:40px;">

					        <td style="text-align:right;">
					        	发布渠道:
					        </td>
							<td>
								<input type="hidden" id="pubChannelId" name="pubChannelId" />
								<input type="text" style="width:90%" name="pubChannelName" id="pubChannelName" readonly="readonly"/>
								<img src="../resources/images/open.gif" onClick="selectPubChannel();">
								<div id="channelDiv"></div>
							</td>
							 <td >

					        </td>
							<td>

							</td>
					    </tr>
					</table>
					<div class="btn_query">
						<input type="button" value="查询" onclick="queryPackages()"/>
					</div>
				</form>
			</div>
			<div id="queryResult">
				<div id="packageList"></div>
			</div>
			<div id="openwin"></div>
			<div id="publishwin"></div>
			<div id="packageDisplay"></div>



		</div>
	</body>
</html>
